package model;

import paper.Paper;
import visitor.PaperSelectionVisitor;

import java.util.*;

public class PaperSelection {
    private final Map<Student, List<Paper>> selectionMap = new HashMap<>();

    public void addSelection(Student student, List<Paper> papers) {
        selectionMap.put(student, papers);
    }

    public Map<Student, List<Paper>> getSelections() {
        return Collections.unmodifiableMap(selectionMap);
    }

    public void accept(PaperSelectionVisitor visitor) {
        visitor.visit(this);
    }
}
